package aqua.smile.api.service.impl;

import aqua.smile.api.entity.CoreApp;
import aqua.smile.api.mapper.CoreAppMapper;
import aqua.smile.api.service.CoreAppService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Service
@Slf4j
public class CoreAppServiceImpl extends ServiceImpl<CoreAppMapper, CoreApp> implements CoreAppService {

    @Override
    public CoreApp getByAppId(String appId) {
        return this.getOne(
                new LambdaQueryWrapper<CoreApp>()
                        .eq(CoreApp::getAppId, appId)
        );
    }

}
